package com.ys168.gam.view;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.UIManager;

import com.ys168.gam.util.ConfigLoader;
import com.ys168.gam.util.ResourceLoader;

/**
 * 
 * @author Jason Krebs
 * @since 2015年6月12日
 */
public class Start {

    public static void main(String[] args) {
        ConfigLoader.load();
        ResourceLoader.load();

        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    JFrame.setDefaultLookAndFeelDecorated(true);
                    UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
                    MainFrame frame = new MainFrame();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
                }
                catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

}
